package modelLayer;

public class ProductForLease extends Product {
	
	 private String status;
	 private final static String measure = "days";
	 private final static double alert = 0;
	public ProductForLease(int id, String name, String description, double price, double quantity, String category, String location,String state) {
		super(id, name, description, price, quantity, category, location, alert, measure);
		this.status=state;
	}

	public String getState() {
		return status;
	}

	public void setState(String state) {
		this.status = state;
	}


	@Override
	public String toString() {
		return "ProductForLease [status=" + status + ", name=" + name
				+ ", description=" + description + "]";
	}
	
	public String save(){
		return "8"+super.save() +","+ status;
	}
	
	

	

}
